﻿@model JinianNet.JNCms.Models.Content
<!DOCTYPE html>
<html>
<head>
    <title>@Model.Title - @JinianNet.JNCms.Config.Site.Name</title>
    @JinianNet.Web.ResourceManager.Script.Render("Manage/Base")
    @JinianNet.Web.ResourceManager.Script.Render("Editor")
    @JinianNet.Web.ResourceManager.Style.Render("Manage/Base")
    <script type="text/javascript">
        $(function () {
            CKEDITOR.replace("Text", { width: '100%' });
        });
    </script>
</head>
<body>
    @using (Html.BeginForm())
    { 
        <table width="95%" align="center" border="0" cellspacing="0" cellpadding="0" class="biggrid">
            <tr>
                <th colspan="2" align="left">&nbsp;</th>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">标　　题</td>
                <td><input class="input" type="text" id="Title" name="Title" value="@Model.Title" maxlength="100" />
                    <input type="hidden" id="ID" name="ID" value="@Model.ID" /><input type="hidden" id="ClassID" name="ClassID" value="@Model.ClassID" /> <span>*</span></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">创建时间</td>
                <td>@Model.CreateTime
                    <input type="hidden" id="CreateTime" name="CreateTime" value="@Model.CreateTime" />
                    <input type="hidden" id="UserID" name="UserID" value="@Model.UserID" />
                    
                </td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">内容别名</td>
                <td>
                    <input class="input" type="text" id="KeyName" name="KeyName" value="@Model.KeyName" maxlength="50" />
                    *只能使用字母、数字，并只能以字母开头，可以在模板中以 #{ Content("别名") } 的方式直接显示内容！</td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">HTML文本</td>
                <td><textarea class="textarea" id="Text" name="Text" cols="50" rows="3" >@(new MvcHtmlString(Model.Text))</textarea></td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <input type="submit" value="保存操作" />
                    <input type="button" value="返回上页" onclick="history.back()" /></td>
            </tr>
        </table>
    }
</body>
</html>
